local lihui_active = fk.CreateSkill{
  name = "#hanqing__lihui_active",
}

Fk:loadTranslationTable{
  ["#hanqing__lihui_active"] = "砺喙",
}

lihui_active:addEffect("active", {
  min_card_num = 0,
  max_card_num = 2,
  target_num = 0,
  card_filter = function (self, player, to_select, selected)
    return #selected < 2 and not player:prohibitDiscard(to_select)
  end,
  feasible = function (self, player, selected, selected_cards)
    if #selected_cards == 2 then
      return true
    elseif #selected_cards == 0 then
      return player.hp > 0
    end
  end,
})

return lihui_active
